<?php

class Benservi_Forms_Banco extends Zend_Form{

    public function init()
    {
                
        $nome = new Zend_Form_Element_Text('nome');
        $nome->setLabel('Nome')
             ->setRequired(true)             
             ->setOptions(array('class' => 'input-m'));

        $codigo = new Zend_Form_Element_Text('codigo');
        $codigo->setLabel('Codigo')
             ->setRequired(true)
             ->setOptions(array('class' => 'input-m'));

        $layout = new Zend_Form_Element_Text('layout');
        $layout->setLabel('Layout')
             ->setRequired(true)
             ->setOptions(array('class' => 'input-m'));

        $act = new Zend_Form_Element_Button('Salvar');

        $act->setAttribs(
                array(
                    'class' =>  'button-submit',
                    'type'  =>  'submit'
                )
            )
            ->setDescription( sprintf('<button name="act" id="act" type="reset" class="button-submit">Reset</button>', Zend_Controller_Front::getInstance()->getBaseUrl()))
            ->setDecorators(array(
                'ViewHelper',
                array('Description', array('escape' => false, 'tag' => false)),
                array('HtmlTag', array('tag' => 'dt', 'class' => 'buttons')),
        ));

        $this->addElements(array($nome, $codigo, $layout, $act));
       
    }

}

?>
